package mozi.com.oneday.gson;

/**
 * Created by 执子一白 on 2017/9/25.
 */

public class User {

    /**
     * code : 100
     * msg : 处理成功！
     * extend : {"User":{"userid":1,"email":"zhangssanfeng@taiji.com","password":"123456","username":"张三丰","picture":null,"phone":null}}
     */

    private int code;
    private String msg;
    private ExtendBean extend;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public ExtendBean getExtend() {
        return extend;
    }

    public void setExtend(ExtendBean extend) {
        this.extend = extend;
    }

    public static class ExtendBean {
        /**
         * User : {"userid":1,"email":"zhangssanfeng@taiji.com","password":"123456","username":"张三丰","picture":null,"phone":null}
         */

        private UserBean User;

        public UserBean getUser() {
            return User;
        }

        public void setUser(UserBean User) {
            this.User = User;
        }

        public static class UserBean {
            /**
             * userid : 1
             * email : zhangssanfeng@taiji.com
             * password : 123456
             * username : 张三丰
             * picture : null
             * phone : null
             */

            private int userid;
            private String email;
            private String password;
            private String username;
            private Object picture;
            private Object phone;

            public int getUserid() {
                return userid;
            }

            public void setUserid(int userid) {
                this.userid = userid;
            }

            public String getEmail() {
                return email;
            }

            public void setEmail(String email) {
                this.email = email;
            }

            public String getPassword() {
                return password;
            }

            public void setPassword(String password) {
                this.password = password;
            }

            public String getUsername() {
                return username;
            }

            public void setUsername(String username) {
                this.username = username;
            }

            public Object getPicture() {
                return picture;
            }

            public void setPicture(Object picture) {
                this.picture = picture;
            }

            public Object getPhone() {
                return phone;
            }

            public void setPhone(Object phone) {
                this.phone = phone;
            }

            @Override
            public String toString() {
                return "UserBean{" +
                        "userid=" + userid +
                        ", email='" + email + '\'' +
                        ", password='" + password + '\'' +
                        ", username='" + username + '\'' +
                        ", picture=" + picture +
                        ", phone=" + phone +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "ExtendBean{" +
                    "User=" + User +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "User{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", extend=" + extend +
                '}';
    }
}
